package com.klb.service.catalog.impl;

import com.klb.service.catalog.QuitServiceCatalog;
import com.klb.tools.Sessions;
import com.klb.tools.Tools;

/**
 * Created by fujia on 2016/6/1.
 */
public class QuitServiceCatalogImpl implements QuitServiceCatalog {

    @Override
    public boolean quitIsSuccess() {

        if (!Tools.objectIsNullOrNot(Sessions.getSession("username")) && !Tools.objectIsNullOrNot(Sessions.getSession("userId"))){
            Sessions.removeSession("username");
            Sessions.removeSession("userId");
            return true;
        }

        return false;
    }
}
